#include <iostream>
#include <cstdio>
#include <cstring>
#include <cctype>
using namespace std;


int main8()
{
	char arr[1100];
	cin>>arr;
	int count=0;
	for(int i=0;i<strlen(arr);i++){
		count=0;
		for(int j=0;j<strlen(arr);j++){
			if(arr[i]==arr[j])
			count++;
		}
		if(count==1){
			cout<<arr[i];
			break;
		}
		}
		if(count>1){
			cout<<"no";
		}
	
	return 0;
}

int main7()
{
	char arr1[21],arr2[21];
	cin>>arr1;
	cin>>arr2;
	if(strstr(arr1,arr2))
	cout<<arr2<<" is substring of "<<arr1<<endl;
	else if(strstr(arr2,arr1))
	cout<<arr1<<" is substring of "<<arr2<<endl;
	else
	cout<<"No substring"<<endl; 
	return 0;
}

int main6()
{
	char dig[101];
	cin>>dig;
	for(int i=0;i<strlen(dig);i++){
		if(i==strlen(dig)-1){
			cout<<(char)(dig[i]+dig[0]);
		}else{
			cout<<(char)(dig[i]+dig[i+1]);
		}
	}
	
	return 0;
}

int main5()
{
	double flag;
	int count=0,sum=0;
	cin>>flag;
	char arr1[501],arr2[501];
	cin>>arr1;
	cin>>arr2;
	for(int i=0;arr1[i]!='\0';i++){
		count++;
	}
	for(int i=0;i<count;i++){
		if(arr1[i]==arr2[i]){
			sum++;
		}
	}
	if((1.0*sum/count)>flag)
	cout<<"yes";
	else
	cout<<"no";
	
	
	return 0;
}

int main4()
{
	int n;
	cin>>n;
	char ch[100][21];
	for(int i=0;i<n;i++){
		cin>>ch[i];
		int j=0;
		while(ch[i][j]!='\0'){
		if(j==0&&islower(ch[i][j])){
			ch[i][j]=toupper(ch[i][j]);
		}else if(j>0&&isupper(ch[i][j])){
			ch[i][j]=tolower(ch[i][j]);
		}
		j++;
		}
		}
	
	for(int i=0;i<n;i++){
		printf("%s\n",ch[i]);
	}
	
	
	return 0;
}

int main3()
{
	char ch[257];
	int count=0;
	fgets(ch,257,stdin);
	for(int i=0;i<strlen(ch);i++){
		if(ch[i]>=48&&ch[i]<=57){
			count++;
		}
	}
	cout<<count;
	return 0;
}

int main2()
{
	char ch[100];
	scanf("%s",ch);
	for(int i=0;i<strlen(ch);i++){
		if(ch[i]>=97&&ch[i]<=122){
			ch[i]-=32;
		}
	}
	printf("%s",ch);
	
	return 0;
}

int main1()
{
	int n,arr[7],self[100][7],ret[7]={0};
	cin>>n;
	for(int i=0;i<7;i++){
		cin>>arr[i];
	}
	for(int i=0;i<n;i++){
		for(int j=0;j<7;j++){
			cin>>self[i][j];
		}
	}
	for(int i=0;i<n;i++){
		int count=0;
		for(int j=0;j<7;j++){
			for(int x=0;x<7;x++){
				if(self[i][j]==arr[x]){
					count++;
				}
			}	
		}
		if(count!=0)
		ret[7-count]++;
	}
	for(int i=0;i<7;i++){
		cout<<ret[i]<<" ";
	}
	return 0;
}
